package com.lh.api.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lh.api.vo.DoboDetailVo;
import com.lh.api.vo.ShopPeriodVo;
import com.lh.common.entity.admin.Period;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface PeriodMapper extends BaseMapper<Period> {
    List<ShopPeriodVo> getPeriodlist(Long aid);

    List<ShopPeriodVo> getPeriodHis(Long aid, Long pid);

    Period getCurrentPeriod(Long aid);

    List<ShopPeriodVo> getListByMap(Map<String, Object> param);

    void updateByKey(Period periodRecord);

    DoboDetailVo getPeriodHisDetail(Long aid, Long pid);
}
